$OpenBSD: patch-iwyu_cc,v 1.1 2017/02/10 09:39:21 ajacoutot Exp $

Update to reflect changes in Clang.

In r283766 started using unique_ptr instead of raw pointers in the
late-parsed templates map.

In r283815 changed FileEntry::Name from raw pointer to StringRef.

--- iwyu.cc.orig	Sat Jan 14 19:44:23 2017
+++ iwyu.cc	Sat Jan 14 19:44:50 2017
@@ -3552,7 +3552,7 @@ class IwyuAstConsumer
 
       // Force parsing and AST building of the yet-uninstantiated function
       // template body.
-      clang::LateParsedTemplate* lpt = sema.LateParsedTemplateMap[fd];
+      clang::LateParsedTemplate* lpt = sema.LateParsedTemplateMap[fd].get();
       sema.LateTemplateParser(sema.OpaqueParser, *lpt);
     }
   }
